import { createElement as el } from './element.js'
// import el from './element'
// const el = require('./element.js')
window.onload = function () {
  const ul = el('div', { id: 'vnode' }, [
    el('p', {}, ['Virtual DOM']),
    el('ul', { id: 'list' }, [
      el('li', { class: 'item' }, ['Item 1']),
      el('li', { class: 'item' }, ['Item 2']),
      el('li', { class: 'item' }, ['Item 3'])
    ]),
    el('div', {}, ['Hello, World'])
  ])
  const ulRoot = ul.render()
  document.body.appendChild(ulRoot)
}
